﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Net;
using Whatzup.Mobi.Common;

namespace Whatzup.Mobi.AppSvc
{
    /// <summary>
    /// To supply client with media location.
    /// </summary>
    public class MediaUrlVm
    {
        IMediaRepo m_repo;
        public MediaUrlVm()
            :this(new ServiceLocator())
        {
        }

        public MediaUrlVm(IServiceLocator serviceLocator)
        {
            m_repo = serviceLocator.GetService<IMediaRepo>();
        }
        /// <summary>
        /// Blackberry /mobile phone (aacplus format)
        /// </summary>
        /// <returns></returns>
        public string MobileUrl
        {
            get { return m_repo.GetMobileUrl().Url; }
        }

        /// <summary>
        /// PC link
        /// </summary>
        /// <returns></returns>
        public string PcUrl
        {
            get { return m_repo.GetPcMediaUrl().Url; }
        }
    }
}
